package com.example.lenovo.appstore.activity;

import butterknife.Bind;
import butterknife.ButterKnife;

import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;

import com.example.lenovo.appstore.R;
import com.example.lenovo.appstore.base.BaseActivity;
import com.example.lenovo.appstore.utils.AppContext;
import com.example.lenovo.appstore.utils.StatusBarUtil;
import com.example.lenovo.appstore.view.TitleBarView;

/**
 *找回密码页面
 * */
public class ForgetPWDActivity extends BaseActivity {
    @Bind(R.id.forgotpwd_title)
    TitleBarView forgotpwd_title;
    @Bind(R.id.forgotpwd_username)
    EditText forgotpwd_username;//用户名
    @Bind(R.id.forgotpwd_password)
    EditText forgotpwd_password;//忘记密码
    @Bind(R.id.forgotpwd_code)
    EditText forgotpwd_code;//验证码
    @Bind(R.id.forgotpwd_getcode)
    TextView forgotpwd_getcode;//获取验证码
    @Bind(R.id.forgotpwd_comfirm_button)
    TextView forgotpwd_comfirm_button;//确认



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_forget_pwd);
        ButterKnife.bind(this);
        initView();
    }

    @Override
    protected void initView() {
        forgotpwd_username.setHint(AppContext.getInstance().getResources().getString(R.string.input_userid));
        forgotpwd_password.setHint(AppContext.getInstance().getResources().getString(R.string.regist_inputPhone_cn));
        forgotpwd_code.setHint(AppContext.getInstance().getResources().getString(R.string.regist_inputMessageCode_cn));
        forgotpwd_getcode.setText(AppContext.getInstance().getResources().getString(R.string.getcode));
        forgotpwd_comfirm_button.setText(AppContext.getInstance().getResources().getString(R.string.commit));
        forgotpwd_title.setTitle(AppContext.getInstance().getResources().getString(R.string.find_password));
        forgotpwd_title.showBackButton(true);
        StatusBarUtil.setStatusBarLightMode(getWindow());
    }
}
